<?php

include "../src/Autoload.php";

//echo file_get_contents('http://www.23wx.com/class/1_3.html');exit;
$config = include "../23wx/config.php";

$dd = new BookSpider\Provider\DingDian($config);

//var_dump($dd->category());
//var_dump($dd->content(63118, 25607781));
//var_dump($dd->search('原始战绩'));
//var_dump($dd->bookList(1,3));
var_dump($dd->chapter(62925));
//var_dump($dd->chapter(52647));
exit;



function test($a,$b) {
    $f = "{a}{b}";

    echo str_replace(array('{a}','{b}'), array($a,$b),$f);
}

test(1,2);exit;